package com.candy.cms.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.candy.common.entity.BaseEntity;

import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 文章
 * </p>
 *
 * @author pxs
 * @since 2021-06-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("cms_article")
@ApiModel(value="Article对象", description="文章")
public class Article extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "分类ID")
    private String catalogId;

    @ApiModelProperty(value = "分类名称")
    private String catalogName;

    @ApiModelProperty(value = "标签名称")
    private String tags;

    @ApiModelProperty(value = "摘要")
    private String description;

    @ApiModelProperty(value = "关键词")
    private String keywords;

    @ApiModelProperty(value = "发布状态")
    private Integer status;

    @ApiModelProperty(value = "发布时间")
    private LocalDate pulishTime;

    @ApiModelProperty(value = "序号")
    private Integer orderNum;

    @ApiModelProperty(value = "置顶")
    private Integer isTop;

    @ApiModelProperty(value = "热点")
    private Integer isHot;
}
